home *** CD-ROM | disk | FTP | other *** search
/ Champak 45 / Vol 45.iso / games / cocoon.swf / scripts / frame_18 / PlaceObject2_207_104 / CLIPACTIONRECORD onClipEvent(load).as < prev   
Encoding:
Text File  |  2006-06-13  |  634 b   |  32 lines

  1. onClipEvent(load){
  2.    function distinguiFaccia(rate)
  3.    {
  4.       if(rate <= 10)
  5.       {
  6.          return 1;
  7.       }
  8.       if(rate < 60 && rate > 10)
  9.       {
  10.          return 2;
  11.       }
  12.       if(rate >= 60 && rate < 80)
  13.       {
  14.          return 3;
  15.       }
  16.       if(rate >= 80)
  17.       {
  18.          i = Math.floor(Math.random() * 200);
  19.          if(i >= 190 && _root.controllerBonus.condition == false)
  20.          {
  21.             _root.controllerBonus.condition = true;
  22.          }
  23.          return 4;
  24.       }
  25.    }
  26.    _root.gamestopped = false;
  27.    this._rotation = 0;
  28.    step = 5;
  29.    changed = true;
  30.    oldfaccia = 1;
  31. }
  32.